<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		function test() {
			var timmer = setInterval(()=>{
				console.log("print");
				setTimeout(()=>{
					console.log("clear");
					clearInterval(timmer);
				},4000)
			},1000)
		}
		test();
	</script>
	<style>
	</style>
</html>
